const { Controller } = require('egg');

class restfulTestController extends Controller {
    async find() {
        const { ctx } = this;
        ctx.body = 'restful find'
    }

    async get() {
        const { ctx } = this
        ctx.body = 'restful get'
    }

    async create() {
        const { ctx } = this
        ctx.body = 'restful create'
    }

    async patch() {
        const { ctx } = this
        ctx.body = 'restful patch'
    }

    async remove() {
        const { ctx } = this
        ctx.body = 'restful remove'
    }
}

module.exports = restfulTestController;